/*
vue router 官方文档
https://router.vuejs.org/zh/guide/
 */

import { createRouter, createWebHashHistory } from 'vue-router'

// 组件
import HelloWorld from '../components/HelloWorld.vue'
// import Empty from '../components/Empty.vue'
import MainTable from '../components/MainTable.vue'

// 路由
const routes = [
  {path: '/', component: MainTable},
  {path: '/hello', component: HelloWorld},
]

export const router = createRouter({
  history: createWebHashHistory(),
  routes,
})
